package com.joker.aigc.oj.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "用户类")
@TableName(value = "job")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "用户id 唯一")
    private Long id;

    @Schema(description = "用户名 唯一")
    @NotBlank
    private Long pid;

    @Schema(description = "用户名 唯一")
    @NotBlank
    private String name;


    @Schema(description = "用户名 唯一")
    @NotBlank
    private Long userId;

}
